/*******************************************************************************
 * Copyright (c) 2011 LegSem.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl-3.0.txt
 * 
 * Contributors:
 *     LegSem - initial API and implementation
 ******************************************************************************/
package com.legstar.eci.xmi.model;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

public class StringTD {
	
	@XStreamAsAttribute
	private String addrUnit;

	@XStreamAsAttribute
	private String alignment;

	@XStreamAsAttribute
	private int characterSize;

	@XStreamAsAttribute
	private String lengthEncoding;

	@XStreamAsAttribute
	private String paddingCharacter;

	@XStreamAsAttribute
	private int prefixLength;

	@XStreamAsAttribute
	private int width;

	@XStreamAsAttribute
	private String id;

	/** {@inheritDoc}*/
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		sb.append("addrUnit" + ":'" + addrUnit + "'");
		sb.append(",");
		sb.append("alignment" + ":'" + alignment + "'");
		sb.append(",");
		sb.append("characterSize" + ":" + characterSize + "");
		sb.append(",");
		sb.append("lengthEncoding" + ":'" + lengthEncoding + "'");
		sb.append(",");
		sb.append("paddingCharacter" + ":'" + paddingCharacter + "'");
		sb.append(",");
		sb.append("prefixLength" + ":" + prefixLength + "");
		sb.append(",");
		sb.append("width" + ":" + width + "");
		sb.append(",");
		sb.append("id" + ":'" + id + "'");
		sb.append("]");
		return sb.toString();
	}

	/**
	 * @return the ddrUnit
	 */
	public String getAddrUnit() {
		return addrUnit;
	}

	/**
	 * @return the alignment
	 */
	public String getAlignment() {
		return alignment;
	}

	/**
	 * @return the characterSize
	 */
	public int getCharacterSize() {
		return characterSize;
	}

	/**
	 * @return the lengthEncoding
	 */
	public String getLengthEncoding() {
		return lengthEncoding;
	}

	/**
	 * @return the paddingCharacter
	 */
	public String getPaddingCharacter() {
		return paddingCharacter;
	}

	/**
	 * @return the prefixLength
	 */
	public int getPrefixLength() {
		return prefixLength;
	}

	/**
	 * @return the width
	 */
	public int getWidth() {
		return width;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

}
